import 'package:flutter/material.dart';
import 'conContainer.dart';
main()=>runApp(MyApp());

class MyApp extends StatelessWidget{

  Widget build(BuildContext context){
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("Expanded组件拓展"),
        ),
        body: Row(
          children: <Widget>[
            Expanded(
              flex: 1,
              child: IconContainer(Icons.hdr_on,color:Colors.blueGrey,BoxColor:Colors.blueGrey),
            ),
            
            Expanded(
              flex: 4,
              child: IconContainer(Icons.hdr_on,color:Colors.blueGrey,BoxColor:Colors.blueAccent),
            ),
          ],
        ),
      ),
    );
  }
}